import service from '../utils/request'
import api from "../api";



//账号密码登录
export function serviceLogin(data: object) {
    return service.post(api.login, data);

}

//通过token登录
export function serviceLoginByToken(token: string) {
    return service.post(api.loginByToken, token);
}

//退出登录
export function serviceLogout(data: object) {
    return service.post(api.logout, data);
}

//忘记密码
export function serviceForgetPassword(data: object) {
    return service.post(api.login, data);
}
